package com.zyh.fengzhuanghejichengzuoye.test3.domain;

public class SheGuai extends Monster {
    public SheGuai() {
    }

    public SheGuai(String name, int HP, int attack) {
        super(name, HP, attack);
    }

    //补血方法
    public void addHP(){
        if (getHP()<10){
            System.out.println("施展大蛇补血术。。。，当前生命值是"+(getHP()+20));
        }
    }

    /*攻击方法
    @Override
    public void attack() {
        System.out.println("怪物"+getName()+"展开攻击");
    }*/

    //移动方法
    @Override
    public void move() {
        System.out.println("我是蛇怪，我走S型路线");
    }
}
